<?php

namespace WinZ\DataMinerBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class RemoteControllerTest extends WebTestCase
{
    public function testUpdateCharacter()
    {
        $client = static::createClient();
    
        $crawler = $client->request(
                'POST',
                '/Update',
                array(),
                array(),
                array(
                    'CONTENT_TYPE' => 'application/json',
                    )
                );
        $this->assertFalse($client->getResponse()->isSuccessful(),'Test Empty content');
    }
    
    public function updateCharacterAction2()
    {
        $client = static::createClient();
        $crawler = $client->request(
                'POST',
                '/Update',
                array(),
                array(),
                array(
                    'CONTENT_TYPE' => 'application/json',
                    ),
                "{{'Name'=>'Mhorsur'},{'Server'=>'Hyjal'}}"
                );
        $this->assertFalse($client->getResponse()->isSuccessful(),'$client->getResponse()->isSuccessful()');
    }

}
